<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="js/jquery1.9.1.js"></script>

</head>
<body>

</body>
<script>
    var serverPath="http://localhost:8080/day06/";
    //多个Ajax默认是异步执行的，具体返回数据的顺序默认和书写顺序无关，谁先执行完， 谁先返回
    $.ajax({
        //5000
        url:serverPath+"async1",
        async:false,
        success:function (data) {
            console.log(1);
        }
    });

    $.ajax({
        //2000
        url:serverPath+"async2",
        success:function () {
            console.log(2);
        }
    });
</script>
</html>